# 作者: 郑驭泷
# 2025年03月23日10时29分10秒
# 2395042511@qq.com
from tkinter.font import names


class Student:
    def __init__(self, name, grade, age):
        self.name = name
        self.grade = grade
        self.age = age
    def __repr__(self):
        return repr((self.name,self.grade,self.age))
student_objects = [
                    Student('john', 'A', 15),
                    Student('jane', 'B', 12),
                    Student('dave', 'B', 10),
                    ]
print(sorted(student_objects, key=lambda student: student.age))
